package com.zxbg.domain;

import java.util.List;

public class Department {
    private Integer dept_id;
    private String dept_name;
    private Integer tenant_id;
    private String dept_head;
    private List<Employee> dept_header;
    private Integer parent;
    private String children_dept_id;
    private List<Department> children;
    private String worker_id;
    private Integer order;
    private boolean leaf;

    public boolean isLeaf() {
        return leaf;
    }

    public void setLeaf(boolean leaf) {
        this.leaf = leaf;
    }

    public Integer getDept_id() {
        return dept_id;
    }

    public void setDept_id(Integer dept_id) {
        this.dept_id = dept_id;
    }

    public String getDept_name() {
        return dept_name;
    }

    public void setDept_name(String dept_name) {
        this.dept_name = dept_name;
    }

    public Integer getTenant_id() {
        return tenant_id;
    }

    public void setTenant_id(Integer tenant_id) {
        this.tenant_id = tenant_id;
    }

    public String getDept_head() {
        return dept_head;
    }

    public void setDept_head(String dept_head) {
        this.dept_head = dept_head;
    }

    public Integer getParent() {
        return parent;
    }

    public void setParent(Integer parent) {
        this.parent = parent;
    }

    public String getChildren_dept_id() {
        return children_dept_id;
    }

    public void setChildren_dept_id(String children_dept_id) {
        this.children_dept_id = children_dept_id;
    }

    public List<Department> getChildren() {
        return children;
    }

    public void setChildren(List<Department> children) {
        this.children = children;
    }

    public String getWorker_id() {
        return worker_id;
    }

    public void setWorker_id(String worker_id) {
        this.worker_id = worker_id;
    }

    public Integer getOrder() {
        return order;
    }

    public void setOrder(Integer order) {
        this.order = order;
    }

    public List<Employee> getDept_header() {
        return dept_header;
    }

    public void setDept_header(List<Employee> dept_header) {
        this.dept_header = dept_header;
    }

    @Override
    public String toString() {
        return "Department{" +
                "dept_id=" + dept_id +
                ", dept_name='" + dept_name + '\'' +
                ", tenant_id=" + tenant_id +
                ", dept_head='" + dept_head + '\'' +
                ", dept_header=" + dept_header +
                ", parent=" + parent +
                ", children_dept_id='" + children_dept_id + '\'' +
                ", children=" + children +
                ", worker_id='" + worker_id + '\'' +
                ", order=" + order +
                ", leaf=" + leaf +
                '}';
    }
}
